//
//  YDNoPastedTextField.m
//  PeiZiWangBei
//
//  Created by LK-IOS on 2017/11/13.
//  Copyright © 2017年 LK-IOS. All rights reserved.
//

#import "YDNoPastedTextField.h"

@implementation YDNoPastedTextField

// 禁止复制粘贴功能
- (BOOL)canPerformAction:(SEL)action withSender:(id)sender
{
    
    UIMenuController *menuController = [UIMenuController sharedMenuController];
    if (menuController) {
        [UIMenuController sharedMenuController].menuVisible = NO;
    }
    return NO;
}

@end
